package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;

import java.util.List;

public interface MemberService {

    //根据手机号查询并注册
    Member findByTelephone(String telephone);

    //添加会员
    void add(Member member);

    //查询每月新增会员
    List<Integer> findMemberCountByMonths(List<String> months);

    //分页查询
    PageResult findPage(QueryPageBean queryPageBean);

    //根据id查询会员
    Member findById(Integer id);

    //更新会员
    void edit(Member member);

    //手机号唯一性
    String phoneValidator(Member member);

    //档案号唯一性
    String fileNumberValidator(Member member);

    //身份证唯一性
    String idCardValidator(Member member);

    //邮箱唯一性
    String emailValidator(Member member);

    //分页查询体检上传
    PageResult findCheckPage(QueryPageBean queryPageBean);

    //删除体检
    void deleteCheck(Integer id);
}
